﻿@model GoPlay.Models.Team

@{
    ViewBag.Title = "Delete";
}

<h2>Delete this team?</h2>

@if (Session["FlashSuccess"] != null)
    {
        <div class="alert alert-success">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h4>Success</h4>
            @Session["FlashSuccess"]
            @{
                Session["FlashSuccess"] = null;
            }
        </div>
    }

@if (Session["FlashError"] != null)
    {
        <div class="alert alert-error">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h4>Oops</h4>
            @Session["FlashError"]
            @{
                Session["FlashError"] = null;
            }
        </div>
    }

<h3>Are you sure you want to delete this team?</h3>
<fieldset>
    <legend>Team</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        <b>@Html.DisplayFor(model => model.Name)</b>
    </div>

        <p> </p>

    <div class="display-field">
        <b>n</b> seasons 
    </div>

        <p> </p>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" class="btn btn-danger btn-large" />
        <p>&nbsp;</p>
        @Html.ActionLink("Back to List", "Index")
    </p>
}
